package com.lr.mapper;

import com.lr.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;


@Mapper
public interface GRMapper {
    public User getUserByPhone(String phone);
    public Integer addUser(User user);
    public Integer addResume(Integer n_userId);
    public Resume getResumeByUserId(Integer n_userId);
    public Integer upLogTime(Integer id);
    public Integer upPublic(Integer n_userId,Integer ispublic);
    public Integer updateResume(Resume resume);
    public Integer upResumeBo(@Param("n_id") Integer id, @Param("n_browseNum")Integer bo);
    public List<Recruit> searchRecruit(Recruit recruit);
    public Integer delCollectByTwoId(@Param("userId") Integer userId,@Param("recruitIds") String recruitIds);
    public Integer addCollect(@Param("userId") Integer userId,@Param("recruitIds") String recruitIds);
    public Integer delRecruitResume(Integer resumeId,String recruitIds);
    public Integer addRecruitResume(Integer resumeId,String recruitIds);
    public Integer addJobHuntingLog(@Param("time") Date date,@Param("userId")Integer userId,@Param("recruitIdStr")String recruitIds);
    public Recruit getRecruitById(Integer id);
    public List<Collect> getCollectByUserId(Integer userId);
    public Integer getStatusById(Integer id);
    public Integer delCollect(Integer id);
    public List<JobHuntingLog> getJobHuntingLog(Integer userId);
    public Integer delLog(Integer id);
}
